<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-vehicle-edit" th:object="${zzVehicle}">
            <input name="vehicleId" th:field="*{vehicleId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">车牌号：</label>
                <div class="col-sm-8">
                    <input name="vehicleCode" th:field="*{vehicleCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="vehicleStatus" value="空闲">
                        <label th:for="vehicleStatus" th:text="空闲" ></label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" name="vehicleStatus" value="忙碌">
                        <label th:for="vehicleStatus" th:text="忙碌" ></label>
                    </div>
                    <div class="radio-box">
                        <input type="radio" name="vehicleStatus" value="维修中">
                        <label th:for="vehicleStatus" th:text="维修中" ></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">司机姓名：</label>
                <div class="col-sm-8">
                    <input name="drivername" th:field="*{drivername}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">司机ID：</label>
                <div class="col-sm-8">
                    <input name="driverId" th:field="*{driverId}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/vehicle";
        $("#form-vehicle-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-vehicle-edit').serialize());
            }
        }
    </script>
</body>
</html>